using Godot;
using System;
using System.Collections.Generic;
using System.Linq; 

public partial class BTStateSelector : BTSelector
{
	
	public override void run()
	{
		
        List<Node> children = new List<Node>(this.GetChildren());
    
		_index_child_node = ChooseNode(children);
		
		Run_current_childnode();
	}


	
	private void CollectBTNodeValues(Node node, List<double> values)  
    {  
        // 检查当前节点是否是BTNode类型的实例  
        if (node is BTNode btNode)  
        {  
            // 如果是，调用方法并添加返回值到列表中  
            values.Add(btNode.Utility());  
        }  
          
    } 

	

}
